<?php /* Smarty version Smarty-3.1.10, created on 2017-02-01 09:46:16
         compiled from "E:\phpStudy\www\templates\areaadminpage\shop\cateset.html" */ ?>
<?php /*%%SmartyHeaderCode:2012258913de8b890e3-99927332%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '715be4d9a0d0d9ff2a2035760de0d63f927d35ab' => 
    array (
      0 => 'E:\\phpStudy\\www\\templates\\areaadminpage\\shop\\cateset.html',
      1 => 1483078304,
      2 => 'file',
    ),
    '0462a66fb5c8884c95c93bf99b2b530dc7658e6d' => 
    array (
      0 => 'E:\\phpStudy\\www\\templates\\areaadminpage\\public\\admin.html',
      1 => 1483405472,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2012258913de8b890e3-99927332',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'tempdir' => 0,
    'siteurl' => 0,
    'is_static' => 0,
    'controlname' => 0,
    'Taction' => 0,
    'tmodule' => 0,
    'sitelogo' => 0,
    'admininfo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_58913de8e898d4_86050597',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58913de8e898d4_86050597')) {function content_58913de8e898d4_86050597($_smarty_tpl) {?> <html xmlns="http://www.w3.org/1999/xhtml"><head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta content="all" name="robots"> 
<meta name="description" content=""> 
<meta content="" name="keywords"> 
<title>分站管理系统</title>  
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/css/admin1.css"> 
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/css/index.css"> 
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/jquery.js" type="text/javascript" language="javascript"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/public.js" type="text/javascript" language="javascript"></script>
 <script type="text/javascript" language="javascript" src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/artdialog/artDialog.js?skin=wmrPopup"></script>
 <script src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/template.min.js" type="text/javascript" language="javascript"></script>

<script type="text/javascript" language="javascript" src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/js/artdialog/plugins/iframeTools.js"></script>
 
 <script>
	var menu = null;
	var siteurl = "<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
";
	var is_static ="<?php echo $_smarty_tpl->tpl_vars['is_static']->value;?>
";
	var ctrl ="<?php echo $_smarty_tpl->tpl_vars['controlname']->value;?>
";
	var action ="<?php echo $_smarty_tpl->tpl_vars['Taction']->value;?>
";
	var module ="<?php echo $_smarty_tpl->tpl_vars['tmodule']->value;?>
";
	if(screen.width > 1359){
		
		$('.newtop').css('width',screen.width);
		$('.newmain').css('width',screen.width);
		$('.newfoot').css('width',screen.width);
	}   
$(".managShopCon .managShopBox .managShopMain .managShopList table .managShopChek input").click(function(){
		var x = $(".managShopCon .managShopBox .managShopMain .managShopList table .managShopChek input").index(this);
		$(".managShopCon .managShopBox .managShopMain .managShopList table .managShopChek i").eq(x).toggleClass("icon_checkbox02")
		})
	$(".managShopCon .managShopBox .managShopMain .managShopList table tbody tr td .managShopChek input").click(function(){
		var x = $(".managShopCon .managShopBox .managShopMain .managShopList table tbody tr td .managShopChek input").index(this);
		$(".managShopCon .managShopBox .managShopMain .managShopList table tbody tr").eq(x).toggleClass("mangSoLisBg")
		})

	$(".popLayDiseRspe ul li input").click(function(){
		var x = $(".popLayDiseRspe ul li input").index(this)
		$(".popLayDiseRspe ul li i").eq(x).toggleClass("popDisChe")
		})
</script> 
</head> 
<body style="background:#f5f5f5;"> 
<div id="cat_zhe" class="cart_zhe" style="display:none;"></div>
<div id="cat_tj" class="cart_out_cat" style="display:none;"> 数据提交中..</div>
 	 
   

<!--------------------------------------------------------------头部开始-------------------------------------------------------------->
<div class="topCon">
	<div class="topBox">
		<div class="topLeft">
			<div class="topLogo"><h1><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/system/module/index"),$_smarty_tpl);?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['sitelogo']->value;?>
" alt="Logo"></a></h1></div>
			<div class="topName"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/system/module/index"),$_smarty_tpl);?>
"><h2>分站管理系统</h2></a></div>
		</div>
		<div class="topRight">
			<div class="topBut">
				<ul>
					<li><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/order/module/adminfastfoods"),$_smarty_tpl);?>
"  ><i class="icon_daike"></i><span>代客下单系统</span></a></li>
					<li><a href="javascript:;"  ><i class="icon_yhm"></i><span><?php echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];?>
</span></a></li>
					<li><a href="javascript:;" onclick="modifypwd();" title="修改密码"><i class="icon_user"></i><span>修改密码</span></a></li>
					<li><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/member/agentadminloginout"),$_smarty_tpl);?>
" title="退出"><i class="icon_signout"></i><span>退出</span></a></li>
				</ul>
			</div>
		</div>
	</div>
</div>
<!--------------------------------------------------------------头部结束-------------------------------------------------------------->

<!--------------------------------------------------------------首页开始-------------------------------------------------------------->
<!---------------------------功能分类--------------------------->
<div class="homePageCon">
	<div class="homePageBox">
		<div class="homePageNav">
			<ul>				
				<li class="home_bg00"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/area/module/adminpsset"),$_smarty_tpl);?>
" title="平台配送设置"><i class="icon_dpgl"></i><span>配送设置</span></a></li>
				<li class="home_bg02"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/shop/module/adminshoplist"),$_smarty_tpl);?>
" title="店铺管理"><i class="icon_dpgl"></i><span>店铺管理</span></a></li>
				<li class="home_bg03"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/order/module/orderlist"),$_smarty_tpl);?>
" title="订单管理"><i class="icon_ddgl"></i><span>订单管理</span></a></li>
				<li class="home_bg04"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/psuser/module/memberlistps"),$_smarty_tpl);?>
" title="配送管理"><i class="icon_psgl"></i><span>配送管理</span></a></li>
				<li class="home_bg05"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/member/module/memberlistshop"),$_smarty_tpl);?>
" title="用户管理"><i class="icon_yhgl"></i><span>用户管理</span></a></li>
				<li class="home_bg06"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/order/module/ordertotal"),$_smarty_tpl);?>
" title="数据统计"><i class="icon_sjtj"></i><span>数据统计</span></a></li>
				<li class="home_bg01"><a href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/shop/module/cateset"),$_smarty_tpl);?>
" title="其它设置"><i class="icon_tjdp"></i><span>其它设置</span></a></li>
			</ul>
		</div>
	</div>
</div>
  
<div style="clear:both;"></div>
 	
<script>
$(function(){ 
 $('.show_page a').wrap('<li></li>');
 $('.show_page').find('.current').eq(0).parent().css({'background':'#f60'}); 
}); 
</script>
<style>
 .search{width:1160px;margin:0 auto;}
.tags{width:1160px;margin:0 auto;}

</style>
  
  
 
<div class="managShopCon">
	<div class="managShopBox">
		<div class="managShopMain">
			
 			 <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tempdir']->value)."/public/commentcate.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  
			
			<div class="addShopSingCon">
			
			
			
		  <?php if (!empty($_smarty_tpl->tpl_vars['admininfo']->value['cityid'])&&!empty($_smarty_tpl->tpl_vars['admininfo']->value)){?>
		  
 		    <div id="tagscontent">
           
              <div>
                 <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>
                        <th align="center">名称</th>  
							<th align="center">图片</th>
                        <th align="center">上传</th> 
                        <th align="center">跳转界面</th>
                        <th align="center">排序</th>
                         
							<th align="center">操作</th> 
                       </tr>
 
                    </thead> 
                     <tbody>
                    <?php  $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['items']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['appadvlist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value){
$_smarty_tpl->tpl_vars['items']->_loop = true;
?>
					    <?php if ($_smarty_tpl->tpl_vars['items']->value['type']==2){?>
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff"> 
                      
                        <td align="center">
							<input type="hidden" name="input_gid<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
">
							<input type="text" name="input_gname<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
" id="input_gname<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['items']->value['name'];?>
" style="width:100px;"></td> 
							<td align="center"><input type="hidden" name="input_gimg<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
" id="input_gimg<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
"  value="<?php echo $_smarty_tpl->tpl_vars['items']->value['img'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['items']->value['img'];?>
" id="gimg<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
"   style="width:100px;height:100px;"></td> 
                        <td align="center"> <span style="cursor:pointer;" onclick="upload_gudings('gimg<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
');">上传图片</span></td> 
                        <td align="center"><select name="input_gselect<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
">
							 <?php  $_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['itv']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['catlist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value){
$_smarty_tpl->tpl_vars['itv']->_loop = true;
?>
								 <option value="<?php echo $_smarty_tpl->tpl_vars['itv']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['items']->value['param']==$_smarty_tpl->tpl_vars['itv']->value['id']){?> selected <?php }?> ><?php echo $_smarty_tpl->tpl_vars['catarr']->value[$_smarty_tpl->tpl_vars['itv']->value['cattype']];?>
-<?php echo $_smarty_tpl->tpl_vars['itv']->value['name'];?>
</option>
							 <?php } ?> 
		 <option value="lifehelp" <?php if ($_smarty_tpl->tpl_vars['items']->value['activity']=='lifehelp'){?> selected <?php }?> >生活服务</option>
                            <option value="shophui" <?php if ($_smarty_tpl->tpl_vars['items']->value['activity']=='shophui'){?> selected <?php }?> >到店消费</option>
							 </select></td>   
						<td align="center" ><input type="text" name="input_gorderid<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
" id="input_gorderid<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['items']->value['orderid'];?>
" style="width:60px;"></td>
                        <td align="center"><a href="#"><a onclick="javascript:dogdsave('<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
');" href="#" class="delurl">提交更新</a> 
							<a onclick="return remind(this);" href="<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/shop/module/delappadv/id/".((string)$_smarty_tpl->tpl_vars['items']->value['id'])."/datatype/json"),$_smarty_tpl);?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value;?>
/public/images/admin/del.jpg"></a></td>  
                      </tr> 
							<?php }?>
					  <?php } ?>
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff"> 
                       
                        <td align="center"><input type="hidden" name="input_gid" value=""><input type="text" name="input_gname" id="input_gname" value="" style="width:100px;"></td> 
						    <td align="center"><input type="hidden" name="input_gimg" id="input_gimg"  value=""><img src="" id="gimg"   style="width:100px;height:100px;display:none;"></td> 
                        <td align="center"><span style="cursor:pointer;" onclick="upload_gudings('gimg');">上传图片</span></td> 
                        <td align="center"><select name="input_gselect">
													<?php  $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['items']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['catlist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value){
$_smarty_tpl->tpl_vars['items']->_loop = true;
?>
													<option value="<?php echo $_smarty_tpl->tpl_vars['items']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['catarr']->value[$_smarty_tpl->tpl_vars['items']->value['cattype']];?>
-<?php echo $_smarty_tpl->tpl_vars['items']->value['name'];?>
</option>
													<?php } ?> 
									 <option value="lifehelp"   >生活服务</option>
                            <option value="shophui">到店消费</option>

												</select>
							</td>  
                         <td align="center" ><input type="text" name="input_gorderid" id="input_gorderid" value="" placeholder="排序" style="width:60px;"></td>
                        <td align="center"><a onclick="javascript:dogdsave('');" href="#" class="delurl">提交</a></td> 
                      </tr> 
                    </tbody> 

                  </table>
              </div>  
          </div> 
		 <?php }else{ ?>

		 <div style="height:40px;line-height:40px;text-align:left;font-weight:bold;font-size:20px;border:none;padding-left:30px;margin-top:10px;background-color:#fff;color:#F00;">分站未绑定所属城市</div>

		<?php }?>
			
			 
				
				
				 
			</div>
		</div>
	</div>
</div>

 <div class="clear"></div>
    	  
<script>

var click_button = false; 
function doubleclick(){
	click_button = false;
}
function mobilechangemodule(obj){
	var url = siteurl+'/index.php?ctrl=adminpage&action=system&module=savemobiletempset&mobilemodule='+$(obj).val()+'&datatype=json&random=@random@';
	$.ajax({
		type: 'post',
		async:false,
		url: url.replace('@random@', 1+Math.round(Math.random()*1000)),
		dataType: 'json',success: function(content) {
			if(content.error == false){
//				window.location.reload();
			}else{
				if(content.error == true)
				{
					diaerror(content.msg);
				}else{
					diaerror(content);
				}
			}
		},
		error: function(content) {
			diaerror('数据获取失败');
		}
	});
}
function lockclick(){
	 if(click_button == false){
			click_button = true;
			setTimeout("doubleclick()", 1000); 
			return true;
	 }else{
		 return false;
	 }
}
var dialogs ;
function uploads(modulename){
 	  dialogs = art.dialog.open('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/other/module/uploadapp/obj/'+modulename+'/func/uploadsucess"),$_smarty_tpl);?>
');
 	  dialogs.title('上传图片');
}
function uploadsucess(flag,obj,linkurl){
	if(flag == true){
 		alert(linkurl);
		dialogs.close();
		uploads(obj);
	}else{
		dialogs.close(); 
		//提交数据并返回显示 
			$.post('<?php echo FUNC_function(array('type'=>'url','link'=>"/adminpage/app/module/appmdimg/datatype/json"),$_smarty_tpl);?>
', {'mudulename':obj,'imgurl':linkurl} ,function (data, textStatus){  
			if(data.error == false){
				$('#module_'+obj).attr('src',linkurl);
				$('#module_'+obj).show();
			}else{
				if(data.error == true)
				{
					diaerror(data.msg); 
				}else{
					diaerror(data); 
				}
			} 
		}, 'json');  
	}
 }
 

</script>
  
<style>
#tagscontent input, #tagscontent #table input{    border: 1px solid #2492c1;}
</style>	  
<script> 
function upload_gudings(modulename){
 	  dialogs = art.dialog.open('<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/shop/module/uploadapp/obj/'+modulename+'/func/uploadgsucess"),$_smarty_tpl);?>
');
 	  dialogs.title('上传图片');
}
function uploadgsucess(flag,obj,linkurl){
	if(flag == true){
 		alert(linkurl);
		dialogs.close();
		upload_gudings(obj);
	}else{
		dialogs.close(); 
		//提交数据并返回显示 
			$('#'+obj).attr('src',linkurl);
			$('#'+obj).show();
		  $('#input_'+obj).val(linkurl); 
	}
 }
 function dogdsave(gdid){
	 if(lockclick()){
			var checkname =   $('#input_gname'+gdid).val();
			
			if(checkname == ''){
				alert('录入的名称不能为空');
				return false;
			}
			var checkimg = $('#input_gimg'+gdid).val();
			var orderid = $('#input_gorderid'+gdid).val();
			if(checkimg == ''){
			   alert('未选择图片');
			   return false; 
			} 	
					
			var typeid = $("select[name='input_gselect"+gdid+"']").find("option:selected").val(); //$(this).input_gselect
			$.post('<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/shop/module/addgd/datatype/json"),$_smarty_tpl);?>
', {'imgurl':checkimg,'orderid':orderid,'typeid':typeid,'name':checkname,'appposition':2,'id':gdid} ,function (data, textStatus){  
					if(data.error == false){
						diasucces('操作成功','');
					}else{
						if(data.error == true)
						{
							diaerror(data.msg); 
						}else{
							diaerror(data); 
						}
					} 
			}, 'json'); 
	}
 }  
 function dosaveadv(gdid){
	  if(lockclick()){
		var checkname =   $('#input_aname'+gdid).val();
		if(checkname == ''){
			alert('录入的名称不能为空');
			return false;
		}
		var checkimg = $('#input_aimg'+gdid).val();
		if(checkimg == ''){
		   alert('未选择图片');
		   return false; 
		} 	
				
		 
		$.post('<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/shop/module/addad/datatype/json"),$_smarty_tpl);?>
', {'imgurl':checkimg,'typeid':0,'name':checkname,'appposition':1,'id':gdid} ,function (data, textStatus){  
				if(data.error == false){
					diasucces('操作成功','');
				}else{
					if(data.error == true)
					{
						diaerror(data.msg); 
					}else{
						diaerror(data); 
					}
				} 
		}, 'json'); 
		}
 }
 function dosaveanadv(gdid){
  if(lockclick()){
	var checkname =   $('#input_anname'+gdid).val();
	if(checkname == ''){
	    alert('录入的名称不能为空');
		return false;
	}
	var checkimg = $('#input_animg'+gdid).val();
	if(checkimg == ''){
	   alert('未选择图片');
	   return false; 
	} 	
	 		
	 
    $.post('<?php echo FUNC_function(array('type'=>'url','link'=>"/areaadminpage/shop/module/addad/datatype/json"),$_smarty_tpl);?>
', {'imgurl':checkimg,'typeid':0,'name':checkname,'appposition':3,'id':gdid} ,function (data, textStatus){  
			if(data.error == false){
				diasucces('操作成功','');
			}else{
				if(data.error == true)
				{
					diaerror(data.msg); 
				}else{
					diaerror(data); 
				}
			} 
	}, 'json');
	}
 }
</script>
  

   	         
  
</body>
</html>





<?php }} ?>